binutils.git
8 days agopr106641
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
pr106641

# DP: Fix PR demangler/106641, taken from the trunk.

# DP: Fix PR demangler/106641, taken from the trunk.

libiberty: fix resource exhaustion in rust demangler (PR demangler/106641)

demangle_binder() parses the bound_lifetimes count as a base-62
integer with no upper bound.  A crafted symbol can encode a huge
lifetime count in very few bytes, causing OOM or CPU hang.

Cap bound_lifetimes at 1024 and check rdm->errored in the loop
so it bails out early on errors during iteration.

libiberty/ChangeLog:

        PR demangler/106641
        * rust-demangle.c (demangle_binder): Reject bound_lifetimes
        above 1024 to prevent resource exhaustion from crafted symbols.
        Add rdm->errored check in the loop condition.
        * testsuite/rust-demangle-expected: Add regression test.

Gbp-Pq: Name pr106641.diff

8 days agosh-disable-tests
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
sh-disable-tests

Gbp-Pq: Name sh-disable-tests.diff

8 days agogprofng-cross-build
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
gprofng-cross-build

Gbp-Pq: Name gprofng-cross-build.diff

8 days agoGenerate a deterministic gprofng example documentation tarball
James Addison [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
Generate a deterministic gprofng example documentation tarball

Bug-Debian: https://bugs.debian.org/1090395
Bug-Debian: https://bugs.debian.org/1092870
Last-Update: 2025-01-13

Gbp-Pq: Name gprofng-examples-tgz-deterministic.diff

8 days agoarmhf-64k-alignment
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
armhf-64k-alignment

The upstream binutils commit below reduced the section alignment of
armhf executables (including shared libraries) from 64k to 4k, on the
basis that the additional bloat is not justified, given that arm64 hosts
running 64k pagesize kernels with armhf user space are not used in
practice.

However, the situation is slightly different today on Debian, where a
16k pagesize kernel is provided that enables compat support, and is
therefore able to execute armhf user space. The only impediment is the
fact that armhf binaries are no longer compatible with this, due to the
change below.

To accommodate this use case, revert the patch. This makes the generated
executables compatible with compat mode on arm64 systems running 16k
kernels.

Gbp-Pq: Name armhf-64k-alignment.diff

8 days agoenv-package-metadata
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
env-package-metadata

Gbp-Pq: Name env-package-metadata.diff

8 days agoperl-shebang
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
perl-shebang

Gbp-Pq: Name perl-shebang.diff

8 days agomips-hack
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
mips-hack

Gbp-Pq: Name mips-hack.diff

8 days agolibctf-soname
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
libctf-soname

Gbp-Pq: Name libctf-soname.diff

8 days agoaarch64-libpath
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
aarch64-libpath

Gbp-Pq: Name aarch64-libpath.diff

8 days agogprof-build
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
gprof-build

# DP: Fix gprof build error.

# DP: Fix gprof build error.

Gbp-Pq: Name gprof-build.diff

8 days ago_ld_doc_remove_xref
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
_ld_doc_remove_xref

# DP: In ld.texi, remove cross reference to BFD internals documentation.

# DP: In ld.texi, remove cross reference to BFD internals documentation.

Gbp-Pq: Name 164_ld_doc_remove_xref.diff

8 days ago_ar_scripts_with_tilde
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
_ar_scripts_with_tilde

Gbp-Pq: Name 157_ar_scripts_with_tilde.patch

8 days agoBuild libbfd with -fPIC to allow linking with PIE binaries
Balint Reczey [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
Build libbfd with -fPIC to allow linking with PIE binaries

Gbp-Pq: Name 136_bfd_pic.patch

8 days ago_bfd_soversion
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
_bfd_soversion

Gbp-Pq: Name 135_bfd_soversion.patch

8 days agoDescription: Fix ld-bootstrap testsuite when configured with --enable-plugins
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
Description: Fix ld-bootstrap testsuite when configured with --enable-plugins

Upstream status: proposed patch

Upstream status: proposed patch

Gbp-Pq: Name 131_ld_bootstrap_testsuite.patch

8 days ago_multiarch_libpath
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
_multiarch_libpath

# DP: Add multiarch directories to linker search path for ld and gold.

# DP: Add multiarch directories to linker search path for ld and gold.

Gbp-Pq: Name 129_multiarch_libpath.patch

8 days ago_ppc64_powerpc_biarch
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
_ppc64_powerpc_biarch

Gbp-Pq: Name 128_ppc64_powerpc_biarch.patch

8 days agoExplicitly use bash for the ld testsuite.
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
Explicitly use bash for the ld testsuite.

Gbp-Pq: Name 013_bash_in_ld_testsuite.patch

8 days agoSpecify which filename is causing an error if the filename is a
David Kimdon [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
Specify which filename is causing an error if the filename is a

directory. (#45832)

Gbp-Pq: Name 006_better_file_error.patch

8 days agoDon't mention monitor(3) which doesn't exist in Debian. (#160654)
Chris Chimelis [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
Don't mention monitor(3) which doesn't exist in Debian. (#160654)

Gbp-Pq: Name 003_gprof_see_also_monitor.patch

8 days agoAdd more documentation about profiling and -fprofile-arcs.
Chris Chimelis [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
Add more documentation about profiling and -fprofile-arcs.

Gbp-Pq: Name 002_gprof_profile_arcs.patch

8 days agoDescription: correct where ld scripts are installed
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
Description: correct where ld scripts are installed

Upstream status: N/A

Upstream status: N/A
Date: ??

Gbp-Pq: Name 001_ld_makefile_patch.patch

8 days agobinutils (2.46-3) unstable; urgency=medium
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
binutils (2.46-3) unstable; urgency=medium

  * Fix PR demangler/106641, taken from the trunk.
  * Drop build dependency on quilt. Closes: #1129263.
  * Update libgprofng symbols file.

[dgit import unpatched binutils 2.46-3]

8 days agoImport binutils_2.46-3.debian.tar.xz
Matthias Klose [Thu, 5 Mar 2026 11:22:39 +0000 (12:22 +0100)]
Import binutils_2.46-3.debian.tar.xz

[dgit import tarball binutils 2.46-3 binutils_2.46-3.debian.tar.xz]

4 weeks agoImport binutils_2.46.orig.tar.xz
Matthias Klose [Sun, 8 Feb 2026 13:26:28 +0000 (14:26 +0100)]
Import binutils_2.46.orig.tar.xz

[dgit import orig binutils_2.46.orig.tar.xz]